package com.wkk.nursinghome.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 统一返回数据类型ResultBean
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultBean implements Serializable {

	private Integer code;//编号: 200成功， 其它均是失败
	private String message;//消息:成功或错误的信息
	private boolean success;//成功与否标志
	private Object data;//后面返回给前端页面的数据

	public ResultBean(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
	public ResultBean(Integer code, String message, boolean success) {
		this(code,message);
		this.success = success;
	}



	
	
	
}
